import threading
import time

class CodingThread(threading.Thread):
    def run(self):
        for x in range(3):
            print("%s 正在写代码" % threading.current_thread())
            time.sleep(1)
class DrawingThread(threading.Thread):
    def run(self):
        for x in range(3):
            print("%s 正在画图" % threading.current_thread())
            time.sleep(1)

def main():
    # t1 = threading.Thread(target=)
    t1 = CodingThread()
    t2 = DrawingThread()
    t1.start()
    t2.start()
if __name__ == "__main__":
    main()